#ifndef __USER_UART_INTERRUPT_H__
#define __USER_UART_INTERRUPT_H__
#include "main.h"

#define REC_LENGTH  1
#define MAX_REC_LENGTH  512 
#define MAX_REC_LENGTH1  100
#define MAX_REC_LENGTH2  32

void UART0_SentData(uint8_t *buf,uint8_t len);
void UART1_SentData(uint8_t *buf,uint8_t len);
void UART4_SentData(uint8_t *buf,uint8_t len);
void UART5_SentData(uint8_t *buf,uint8_t len);
void SysPrintf(const char *fmt, ...);
unsigned short generate_crc16(unsigned char* data, unsigned char datalen);
void Get_RS485_TempHumi(void);
void Get_PM_Data(void);
void SendDataToNBModule(uint8_t *buf,uint8_t len);
void SendDataToLoRaModule(uint8_t *buf,uint8_t len);
void SendDataToLoRaWANModule(uint8_t *buf,uint8_t len);

u32 atou(s8 *str);
s32 RtspGetStringContent(s8 *buf, s8 *starttitle,s8 *endtitle, s8 *content);
uint32_t UtilGetIntFlag(uint8_t *buf,uint8_t*startflag,uint8_t*endflag);
uint8_t	UtilGetStringFlag(uint8_t *buf,uint8_t*startflag,uint8_t*endflag,uint8_t*content);
#endif
